package com.macro.mall.dto;

import com.macro.mall.common.constants.Constants;

public class ActivitiesRegistrationResult {

    private String message;

    private String code;


    public ActivitiesRegistrationResult(){

    }

    public void setMessage(String message){
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(String code){
        this.code = code;
    }

    public String getCode(){
        return code;
    }

    public static ActivitiesRegistrationResult buildResult(Constants.ActivitiesResultEnum activitiesResultEnum) {
        ActivitiesRegistrationResult activitiesRegistrationResult = new ActivitiesRegistrationResult();
        activitiesRegistrationResult.setMessage(activitiesResultEnum.getMessage());
        activitiesRegistrationResult.setCode(activitiesResultEnum.getCode());
        return activitiesRegistrationResult;
    }
}
